package com.first.xiinn.service.impl;

import java.util.List;

import com.first.core.service.impl.BaseServiceImpl;
import com.first.xiinn.dao.BookCatalogDao;
import com.first.xiinn.model.BookCatalog;
import com.first.xiinn.service.BookCatalogService;

public class BookCatalogServiceImpl extends BaseServiceImpl<BookCatalog> implements BookCatalogService{
	
	private BookCatalogDao dao;

	public BookCatalogServiceImpl(BookCatalogDao dao) {
		super(dao);
		this.dao = dao;
	}
	
	 public List<BookCatalog> findByParentId(String parentId)
	 {
	    return dao.findByParentId(parentId);
	 }
	 
	 public BookCatalog get(String bookCalalogId){
		 return dao.get(bookCalalogId);
	 }
	 
	 public List search(String bookid) {
	 	return this.dao.search(bookid);
	 }
}
